package com.wanwen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

public class Modules {
	@TableId(type=IdType.AUTO)
	private Integer id;//编号
	@TableField(value = "mname")
	private String mnane;//模块名称
	@TableField(value = "parent_id")
	private Integer parentId;//父id
	private String url;//路径
	private String icon;//小图标
	private Integer weight;//权重
	@TableLogic(value = "0", delval = "-1")
	private Integer deleted;
	public Modules(Integer id, String mnane, Integer parentId, String url, String icon, Integer weight,
			Integer deleted) {
		super();
		this.id = id;
		this.mnane = mnane;
		this.parentId = parentId;
		this.url = url;
		this.icon = icon;
		this.weight = weight;
		this.deleted = deleted;
	}
	public Modules() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getMnane() {
		return mnane;
	}
	public void setMnane(String mnane) {
		this.mnane = mnane;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Integer getWeight() {
		return weight;
	}
	public void setWeight(Integer weight) {
		this.weight = weight;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	@Override
	public String toString() {
		return "Modules [id=" + id + ", mnane=" + mnane + ", parentId=" + parentId + ", url=" + url + ", icon=" + icon
				+ ", weight=" + weight + ", deleted=" + deleted + "]";
	}
	
	
}
